package com.xiaooqi.springboot.service.impl;

import com.xiaooqi.springboot.bean.User;
import com.xiaooqi.springboot.mapper.UserMapper;
import com.xiaooqi.springboot.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author Rookie Coder
 * @Description
 * @Date
 **/
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User selectUserById(Integer id) {
        return userMapper.selectByPrimaryKey(id);
    }
}
